<?
	require_once('functions.php');


	$arr = array();

	$results = getStates($_REQUEST['term']);
	while($row = $results->fetch_assoc())
	{
		
    	$arr[] = $row['state'];
	}
	
	echo json_encode($arr);

?>